<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .btns {
            display: flex;
        }

        .btn {
            width: 100px;
            height: 30px;
            border-radius: 10px;
            text-align: center;
            line-height: 30px;
        }

        .activeBtn {
            width: 100px;
            height: 30px;
            border-radius: 10px;
            background: red;
            color: #fff;
            text-align: center;
            line-height: 30px;
        }
    </style>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>

</head>

<body>

    <div id="app">
        <div>
            区域：<span style="color: red;">{{val}}</span>
        </div>

        <div class="btns">
            <div :class="active == 1?'activeBtn':'btn'" @click='changeTab(1,"江浙沪")'>江浙沪</div>
            <div :class="active == 2?'activeBtn':'btn'" @click='changeTab(2,"珠三角")'>珠三角</div>
            <div :class="active == 3?'activeBtn':'btn'" @click='changeTab(3,"北京")'>北京</div>
        </div>
    </div>

    <script>
        new Vue({
            el: "#app",
            data: {
                active: '',
                val: ''
            },
            methods: {
                changeTab(i, val) {
                    this.active = i;
                    this.val = val
                }
            }
        })

    </script>
</body>

</html>